package testMore;

import java.util.Scanner;

public class Test106 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        char[] chars = s.toCharArray();
        StringBuilder sb =new StringBuilder();
        for (int i = chars.length-1; i >= 0 ; i--) {
            sb.append(chars[i]);
        }

        System.out.println(sb.toString());
    }
}
